import com.cman777.springc.mybatisgenerator.generator.JavaFileGenerator;
import com.cman777.springc.mybatisgenerator.properties.MybatisGeneratorProperties;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.cman777.springc.springali.sample.provider.ProviderApplication;

/**
 * @author chenzhicong
 * @time 2020/3/16 22:59
 * @description
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ProviderApplication.class)
public class GenerateJavaFile {
    @Autowired
    private MybatisGeneratorProperties mybatisGeneratorProperties;
    /**
      * 如果需要改生成的表直接到mybatisgenerator/mybatisgenerator.properties中去改
      */
    @Test
    public void generateJavaFile(){
        JavaFileGenerator.generateJavaFile(mybatisGeneratorProperties);
    }

}
